package test.beanTest;

import bean.back.adminlist.BackAdminListItem;
import bean.back.adminlist.BackAdminlistBean;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

import static junit.framework.Assert.assertEquals;

public class BackAdminlistBeanTest {

    @Test
    public void getCode() {
        BackAdminlistBean Balb = new BackAdminlistBean();
        Balb.setCode(1);
        assertEquals(1,Balb.getCode());
    }

    @Test
    public void setCode() {
        BackAdminlistBean Balb = new BackAdminlistBean();
        Balb.setCode(1);
        assertEquals(1,Balb.getCode());

    }

    @Test
    public void getMessage() {
        BackAdminlistBean Balb = new BackAdminlistBean();
        Balb.setMessage("message");
        assertEquals("message",Balb.getMessage());
    }

    @Test
    public void setMessage() {
        BackAdminlistBean Balb = new BackAdminlistBean();
        Balb.setMessage("message");
        assertEquals("message",Balb.getMessage());
    }

    @Test
    public void getTotal_results() {
        BackAdminlistBean Balb = new BackAdminlistBean();
        Balb.setTotal_results(1);
        assertEquals(1,Balb.getTotal_results());
    }

    @Test
    public void setTotal_results() {
        BackAdminlistBean Balb = new BackAdminlistBean();
        Balb.setTotal_results(1);
        assertEquals(1,Balb.getTotal_results());
    }

    @Test
    public void setList() {
        BackAdminlistBean Balb = new BackAdminlistBean();
        List<BackAdminListItem> list = new ArrayList<>();
        Balb.setList(list);
    }

    @Test
    public void query() {
        BackAdminlistBean bean = new BackAdminlistBean();
        bean.query("admin_1#100#yhz","park_1");
    }
}